/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.iss.foodbasket.service;

import javax.ejb.EJB;
import javax.ws.rs.Path;
import com.iss.foodbasket.bizLogic.CustomerService;
import com.iss.foodbasket.models.Users;



import javax.ws.rs.Consumes;


/**
 *
 * @author A0109314N
 */
@Path("/Customer")
public class CustomerWebService 
{
    @EJB CustomerService cuservice;
    @Path("/register")
    @Consumes("application/json")
    public void registercustomer(Users user)
    {
        boolean result=cuservice.registerCustomer(user);
        if(result==true)
        {
            System.out.println("Created");
        }
        else
        {
            System.out.println("Problem");
        }
        
    }
    
}
